package com.ktjiaoyu.controller;

import com.ktjiaoyu.service.NewsAdminService;
import com.ktjiaoyu.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: DABINGCHNEGJIAO
 * @CreateTime: 2025-05-29
 * @Description:
 * @Version: 1.0
 */
@RestController
@RequestMapping("api/admin")
public class NewsAdminController {
    @Autowired
    private NewsAdminService newsAdminService;

    @PostMapping("login")
    public R Login(String username, String password) {
        return newsAdminService.newsLogin(username, password);
    }
}
